.class public Lcom/waiqin365/lightapp/product/a/ac;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/List;

.field private c:Lcom/waiqin365/lightapp/product/a/ag;

.field private d:Lcom/waiqin365/lightapp/product/a/af;

.field private e:Ljava/util/List;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/a/ac;->e:Ljava/util/List;

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/a/ac;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/product/a/ac;->b:Ljava/util/List;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/product/a/ac;)Lcom/waiqin365/lightapp/product/a/ag;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/ac;->c:Lcom/waiqin365/lightapp/product/a/ag;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/product/a/ac;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/ac;->a:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/product/a/ac;)Lcom/waiqin365/lightapp/product/a/af;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/ac;->d:Lcom/waiqin365/lightapp/product/a/af;

    return-object v0
.end method


# virtual methods
.method public a(I)Lcom/waiqin365/base/db/jxccache/g;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/ac;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/jxccache/g;

    return-object v0
.end method

.method public a(Lcom/waiqin365/lightapp/product/a/af;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/a/ac;->d:Lcom/waiqin365/lightapp/product/a/af;

    return-void
.end method

.method public a(Lcom/waiqin365/lightapp/product/a/ag;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/a/ac;->c:Lcom/waiqin365/lightapp/product/a/ag;

    return-void
.end method

.method public a()Z
    .locals 5

    const/4 v2, 0x0

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/ac;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/ac;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v3

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/ac;->b:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/jxccache/g;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->b()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Lcom/waiqin365/base/db/offlinedata/w;->b(Ljava/lang/String;)Lcom/waiqin365/lightapp/product/d/f;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string/jumbo v3, "0"

    iget-object v4, v0, Lcom/waiqin365/lightapp/product/d/f;->c:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    const-string/jumbo v3, "0"

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/d/f;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_0
    const/4 v2, 0x1

    :cond_1
    return v2

    :cond_2
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/ac;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public synthetic getItem(I)Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/product/a/ac;->a(I)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 9

    const/4 v2, 0x0

    const/16 v8, 0x8

    const/4 v7, 0x0

    if-nez p2, :cond_0

    new-instance v1, Lcom/waiqin365/lightapp/product/a/ah;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/product/a/ah;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/ac;->a:Landroid/content/Context;

    const v3, 0x7f0301d9

    invoke-static {v0, v3, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f0c058d

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->a:Landroid/widget/TextView;

    const v0, 0x7f0c0509

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->b:Landroid/widget/ImageView;

    const v0, 0x7f0c050a

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->d:Landroid/widget/TextView;

    const v0, 0x7f0c0549

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    iput-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->c:Landroid/widget/CheckBox;

    const v0, 0x7f0c00eb

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->e:Landroid/widget/TextView;

    const v0, 0x7f0c09e4

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->f:Landroid/widget/TextView;

    const v0, 0x7f0c09e5

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->g:Landroid/widget/TextView;

    iget-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->b:Landroid/widget/ImageView;

    new-instance v3, Lcom/waiqin365/lightapp/product/a/ad;

    invoke-direct {v3, p0, v1}, Lcom/waiqin365/lightapp/product/a/ad;-><init>(Lcom/waiqin365/lightapp/product/a/ac;Lcom/waiqin365/lightapp/product/a/ah;)V

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->c:Landroid/widget/CheckBox;

    new-instance v3, Lcom/waiqin365/lightapp/product/a/ae;

    invoke-direct {v3, p0, v1}, Lcom/waiqin365/lightapp/product/a/ae;-><init>(Lcom/waiqin365/lightapp/product/a/ac;Lcom/waiqin365/lightapp/product/a/ah;)V

    invoke-virtual {v0, v3}, Landroid/widget/CheckBox;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/ac;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/jxccache/g;

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/ac;->a:Landroid/content/Context;

    invoke-static {v3}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v3

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->b()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/waiqin365/base/db/offlinedata/w;->b(Ljava/lang/String;)Lcom/waiqin365/lightapp/product/d/f;

    move-result-object v3

    if-nez v3, :cond_1

    move-object p2, v2

    :goto_1
    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/a/ah;

    move-object v1, v0

    goto :goto_0

    :cond_1
    iget-object v2, v1, Lcom/waiqin365/lightapp/product/a/ah;->b:Landroid/widget/ImageView;

    invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/product/a/ah;->a:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/waiqin365/lightapp/product/a/ac;->a:Landroid/content/Context;

    invoke-static {v4, v3, v7}, Lcom/waiqin365/lightapp/product/e/b;->a(Landroid/content/Context;Lcom/waiqin365/lightapp/product/d/f;Z)Landroid/text/SpannableStringBuilder;

    move-result-object v4

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v3, Lcom/waiqin365/lightapp/product/d/f;->e:Ljava/lang/String;

    invoke-static {v2}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, v1, Lcom/waiqin365/lightapp/product/a/ah;->e:Landroid/widget/TextView;

    invoke-virtual {v2, v8}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_2
    iget-object v2, v1, Lcom/waiqin365/lightapp/product/a/ah;->f:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p0, Lcom/waiqin365/lightapp/product/a/ac;->a:Landroid/content/Context;

    const v6, 0x7f08061d

    invoke-virtual {v5, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string/jumbo v5, "\uff1a"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/d/f;->c()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/product/a/ah;->g:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p0, Lcom/waiqin365/lightapp/product/a/ac;->a:Landroid/content/Context;

    const v6, 0x7f080202

    invoke-virtual {v5, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string/jumbo v5, "\uff1a"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/d/f;->h()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->q()Ljava/lang/Boolean;

    move-result-object v2

    if-eqz v2, :cond_4

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->q()Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-eqz v2, :cond_4

    iget-object v2, v1, Lcom/waiqin365/lightapp/product/a/ah;->c:Landroid/widget/CheckBox;

    invoke-virtual {v2, v7}, Landroid/widget/CheckBox;->setVisibility(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/product/a/ah;->b:Landroid/widget/ImageView;

    invoke-virtual {v2, v8}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->r()Ljava/lang/Boolean;

    move-result-object v2

    if-eqz v2, :cond_3

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->r()Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->c:Landroid/widget/CheckBox;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto/16 :goto_1

    :cond_2
    iget-object v2, v1, Lcom/waiqin365/lightapp/product/a/ah;->e:Landroid/widget/TextView;

    invoke-virtual {v2, v7}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/product/a/ah;->e:Landroid/widget/TextView;

    iget-object v4, v3, Lcom/waiqin365/lightapp/product/d/f;->e:Ljava/lang/String;

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    :cond_3
    iget-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->c:Landroid/widget/CheckBox;

    invoke-virtual {v0, v7}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto/16 :goto_1

    :cond_4
    iget-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->c:Landroid/widget/CheckBox;

    invoke-virtual {v0, v8}, Landroid/widget/CheckBox;->setVisibility(I)V

    iget-object v0, v1, Lcom/waiqin365/lightapp/product/a/ah;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v7}, Landroid/widget/ImageView;->setVisibility(I)V

    goto/16 :goto_1
.end method
